//定义接口的类型约束
//登录携带的参数设置
export interface LoginForm {
  username: string;
  password: string;
}
//定义接口返回的数据类型约束
export interface ResponseData {
  code: number;
  message: string;
  ok: boolean;
}

//定义用户登录接口返回的数据
export interface LoginResponseData extends ResponseData {
  data: string;
}

//定义获取用户信息接口返回的数据
export interface UserInfoResponseData extends ResponseData {
  data: {
    routes: string[];
    buttons: string[];
    roles: string[];
    name: string;
    avatar: string;
  };
}
